﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>MERCHANT CENTER</title>
		<%@ include file="/share/include.jsp" %>
		<!-- <script src="js/jquery.min.js"></script> -->
   		 <meta name="viewport" content="width=device-width, initial-scale=1">
		 <script type="application/x-javascript"> 
			addEventListener("load", function() { 
				setTimeout(hideURLbar, 0); 
			}, false); 
			function hideURLbar(){ 
				window.scrollTo(0,1); 
			} 
		</script>
	</head>
	<body>
		<!-- container -->
		<!-- header -->
		<div class="header">
			<%@ include file="/control/jsp/layout/header.jsp" %>
			<!-- /bottom-header -->
		</div>
		<!-- header -->
		<!--- top-nav -->
			<%@ include file="/control/jsp/layout/sellerMenu.jsp" %>
		<!--- top-nav -->
		<!-- Product-Details-page -->
		<div class="details-page">
			<div class="content details-page">
				<div class="product-details">
					<div class="container">
						<div class="details-left" style="width: 100%;">
							<table style="width: 100%">
								<tbody>
								  <tr>
									<td style="padding: 20px;">
									  <div style="float: left; margin-right: 50px;"><img style="width: 150px;" src="${imageService }${shop.shopLogo}" /></div>
									  <div>
									  	<%-- <c:if test="${shop.shopBondStatus == 1 }"> --%>
										<h5 style="height: 40px;"><span class="J_Tip">Security amount</span> :</h5>
										<div class="numbers"><em>$ ${shopBond }</em> </div>
										<ul class="actions">
											<li class="action-item">
													<%-- <form action="${root }/ExpressCheckout.do" method="post"> --%>
												<form action="${root }/control/ec/expressCheckoutController/doEC.do" method="post">
													 <table style="display: none;">
								                        <tr><td>物品名称:</td><td><input type="text" name="L_PAYMENTREQUEST_0_NAME0" value="Security"></input></td></tr>
								                        <tr><td>物品编号: </td><td><input type="text" name="L_PAYMENTREQUEST_0_NUMBER0" value="S${shop.shopId }"></input></td></tr>
								                        <tr><td>物品说明:</td><td><input type="text" name="L_PAYMENTREQUEST_0_DESC0" value="Pay the security"></input></td></tr>
								                        <tr><td>价格:</td><td><input type="text" name="PAYMENTREQUEST_0_ITEMAMT" value="${shopBond }" readonly></input></td></tr>
								                        <tr><td>用户承担的交易总费用:</td><td><input type="text" name="PAYMENTREQUEST_0_AMT" value="${shopBond }" readonly></input></td></tr>
								                        <tr><td>
								                        <%-- <input type="hidden" name="LOGOIMG" value="${root }img/logo.jpg"></input></td></tr> --%>
								                        <tr><td>Currency Code:</td><td>
								                        <select id="currencyCodeType" name="currencyCodeType">
															<option selected value="USD">USD</option>
															<option value="BRL">BRL</option>
															<option value="CAD">CAD</option>
															<option value="CZK">CZK</option>
															<option value="DKK">DKK</option>
															<option value="EUR">EUR</option>
															<option value="HKD">HKD</option>
															<option value="HUF">HUF</option>
															<option value="ILS">ILS</option>
															<option value="JPY">JPY</option>
															<option value="NOK">NOK</option>
															<option value="MXN">MXN</option>
															<option value="NZD">NZD</option>
															<option value="PHP">PHP</option>
															<option value="PLN">PLN</option>
															<option value="GBP">GBP</option>
															<option value="SGD">SGD</option>
															<option value="SEK">SEK</option>
															<option value="CHF">CHF</option>
															<option value="TWD">TWD</option>
															<option value="THB">THB</option>
															<option value="TRY">TRY</option>
								                        </select>
								                        <br></td></tr>
								                        <tr><td>Payment Type: </td><td>
								                        	<select>
								                               <option value="Sale">Sale</option>
								                               <option value="Authorization">Authorization</option>
								                               <option value="Order">Order</option>
								                             </select><br>
								                            </td>
								                        </tr>
													</table>
													<input  style="margin:10px 0 20px;" type="image" src="https://www.paypalobjects.com/webstatic/en_US/i/buttons/checkout-logo-large.png" alt="Check out with PayPal"/>
												</form>
													<!-- <a style="text-decoration:none;" class="p-btn sz_money">立即缴纳</a> -->
											</li>
										</ul>
										<%-- </c:if> --%>
									  </div>
									</td>
								  </tr>
								  <tr><td style="height:40px;"></td></tr>
								  <tr>
									<td>
									  <div>
										<h5><span class="J_Tip">Security plan</span> :</h5>
										<p>Companies can voluntarily pay business deposit, submitted margin will increase business credit rating, win more cooperation opportunities for you!</p>
									  </div>
									</td>
								  </tr>
								  <tr>
								  	<td>
								  		<div>
								  			<c:if test="${shop.shopBondStatus == 2 }">
												<table class="list_order" style="width: 100%" border="0" align="center" cellpadding="0" cellspacing="2">
												  <thead>
													<tr style="height:40px;">
													  <th>金额</th>
													  <th>时间</th>
													  <th>状态</th>
													</tr>
												  </thead>
												 <tbody style="text-align: center;">
												  	<c:if test="${not empty pageView.records }">
												  		<c:forEach items="${pageView.records }" var="shopSecurity" begin="0" end="0">
														  	<tr style="height: 20px;"></tr>
													  		<tr style="height: 80px;">
															  <td>$ ${fn:escapeXml(shopSecurity.shopSecurityMoney) }</td>
															  <td><fmt:formatDate value="${shopSecurity.shopSecurityMoneyTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
															  <td>
															  	已缴付
															  </td>
															</tr>
														</c:forEach>
													  </c:if>
												  </tbody>
												 </table>
											</c:if>
								  		</div>
								  	</td>
								  </tr>
							</tbody></table>
						</div>
						<div class="clearfix"> </div>
					</div>
			    </div>
		    </div>
		</div>
		<!-- /Product-Details-page -->
		<%-- <!--付款-->
		<div class="contact-bottom-grids" style="display:none;position: fixed;z-index: 99;top: 100px;left: 20%;width: 600px;background: rgb(255, 245, 226);border: 1px solid rgb(255, 116, 0);">
			<div class="contact-bottom-grid-right" style="float: none;margin: 0 auto;width: 90%;">
				<h3>保证金申请 <span class="close" style="float: right;margin-top: -20px; cursor:pointer;"><img src="${root }/images/010.gif"></span></h3>
				<form action="${root }/ExpressCheckout.do" method="post">
					 <table style="display: none;">
                        <tr><td>物品名称:</td><td><input type="text" name="L_PAYMENTREQUEST_0_NAME0" value="Margin"></input></td></tr>
                        <tr><td>物品编号: </td><td><input type="text" name="L_PAYMENTREQUEST_0_NUMBER0" value="M0123"></input></td></tr>
                        <!-- <tr><td>物品说明:</td><td><input type="text" name="L_PAYMENTREQUEST_0_DESC0" value="Autofocus Camera"></input></td></tr>
                        <tr><td>数量:</td><td><input type="text" name="L_PAYMENTREQUEST_0_QTY0" value="1" readonly></input></td></tr> -->
                        <tr><td>价格:</td><td><input type="text" name="PAYMENTREQUEST_0_ITEMAMT" value="${shopBond }" readonly></input></td></tr>
                      <!--   <tr><td>订单中所有物品税费的总额:</td><td><input type="text" name="PAYMENTREQUEST_0_TAXAMT" value="2.00" readonly></input></td></tr>
                        <tr><td>订单的邮费总额:</td><td><input type="text" name="PAYMENTREQUEST_0_SHIPPINGAMT" value="5.00" readonly></input></td></tr>
                        <tr><td>订单处理费总额:</td><td><input type="text" name="PAYMENTREQUEST_0_HANDLINGAMT" value="1.00" readonly></input></td></tr>
                        <tr><td>订单的邮费折扣:</td><td><input type="text" name="PAYMENTREQUEST_0_SHIPDISCAMT" value="-3" readonly></input></td></tr>
                        <tr><td>订单的邮寄保险费总额:</td><td><input type="text" name="PAYMENTREQUEST_0_INSURANCEAMT" value="2.00" readonly></input></td></tr> -->
                        <tr><td>用户承担的交易总费用:</td><td><input type="text" name="PAYMENTREQUEST_0_AMT" value="${shopBond }" readonly></input></td></tr>
                        <tr><td>
                        <input type="hidden" name="LOGOIMG" value="${root }img/logo.jpg"></input></td></tr>
                        <tr><td>Currency Code:</td><td>
                        <select id="currencyCodeType" name="currencyCodeType">
							<option selected value="USD">USD</option>
							<option value="BRL">BRL</option>
							<option value="CAD">CAD</option>
							<option value="CZK">CZK</option>
							<option value="DKK">DKK</option>
							<option value="EUR">EUR</option>
							<option value="HKD">HKD</option>
							<option value="HUF">HUF</option>
							<option value="ILS">ILS</option>
							<option value="JPY">JPY</option>
							<option value="NOK">NOK</option>
							<option value="MXN">MXN</option>
							<option value="NZD">NZD</option>
							<option value="PHP">PHP</option>
							<option value="PLN">PLN</option>
							<option value="GBP">GBP</option>
							<option value="SGD">SGD</option>
							<option value="SEK">SEK</option>
							<option value="CHF">CHF</option>
							<option value="TWD">TWD</option>
							<option value="THB">THB</option>
							<option value="TRY">TRY</option>
                        </select>
                        <br></td></tr>
                        <tr><td>Payment Type: </td><td>
                        	<select>
                               <option value="Sale">Sale</option>
                               <option value="Authorization">Authorization</option>
                               <option value="Order">Order</option>
                             </select><br>
                            </td>
                        </tr>
                        <!-- <tr><td colspan="2"><input type="image" src="https://www.paypalobjects.com/webstatic/en_US/i/buttons/checkout-logo-large.png" alt="Check out with PayPal"/></td></tr> -->
                        </table>
					<!-- <div class="msg-fild">
						<span>现有保证金余额:</span>
						<input type="text" style="padding: 0.4em;" class="text" readonly="readonly" disabled="disabled" value="1">
					</div> -->
					<div class="msg-fild">
						<span>交付保证金($):</span>
						<input type="text" name="PAYMENTREQUEST_0_AMT" value="${shopBond }" style="padding: 0.4em;" class="text" readonly="readonly">
					</div>
					<input  style="margin:10px 0 20px;float: right;" type="image" src="https://www.paypalobjects.com/webstatic/en_US/i/buttons/checkout-logo-large.png" alt="Check out with PayPal"/>
					<!-- <input style="margin:0 0 10px;float: right;" type="submit" value="去支付"> -->
				</form>
			</div>
			<div class="clearfix"> </div>
		</div>
		<!--end 付款-->
		<!-- 付款/退款 -->
		<script>
			jQuery(document).ready(function($){
			    $('.sz_money').click(function(){
					$('.contact-bottom-grids').show();
				});
			
				$('.close').click(function(){
					$('.contact-bottom-grids').hide();
					$('.contact-bottom').hide();
				});

			});
		</script>
		<!-- /Product-Details-page --> --%>
		<!-- footer -->
		<%@ include file="/control/jsp/layout/footer.jsp" %>
</body>
</html>

